package com.groupbuying.settleconsumer.service;

import com.groupbuying.settleconsumer.domain.SettleUshopYSSplitReceiptDO;
import com.groupbuying.settleconsumer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/5/10 16:33
 * @Des 银盛异步回执Service
 */
public interface SettleUshopYSSplitReceiptService {
    /**
     * @param id
     * @return com.groupbuying.settleproducer.domain.YSSplitReceipt
     * @des 根据id查询一条记录
     */
    SettleUshopYSSplitReceiptDO get(String id);
    /**
     * @param map
     * @return List
     * @des 查询列表
     */
    List<SettleUshopYSSplitReceiptDO> list(Map<String, Object> map);
    /**
     * @param map
     * @return int
     * @des 查询总记录
     */
    int count(Map<String, Object> map);
    /**
     * @param splitReceipt
     * @return int
     * @des 保存一条记录
     */
    int save(SettleUshopYSSplitReceiptDO splitReceipt);
    /**
     * @param splitReceipt
     * @return int
     * @des 更新一条记录
     */
    int update(SettleUshopYSSplitReceiptDO splitReceipt);
    /**
     * @param id
     * @return int
     * @des 删除一条记录
     */
    int remove(String id);
    /**
     * @param ids
     * @return int
     * @des 删除多条记录
     */
    int batchRemove(String[] ids);
    /**
     *生成同步回执信息
     * @param String
     * @return com.groupbuying.common.apiresult.ApiResult
     */
    ApiResult createSplitReceipt(String splitReceiptInfo);
    /**
     *生成异步回执信息
     * @param splitReceiptStr
     * @return com.groupbuying.common.apiresult.ApiResult
     */
    ApiResult createAsynchronous(String splitReceiptStr);
}
